package com.ztools.pc.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ztools.common.model.pc.coupon.CouponRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: seeTools
 * @Date: 2023/5/11  15:47
 * @Version 1.0
 */
@Mapper
public interface CouponRecordMapper extends BaseMapper<CouponRecord> {

    /**
     * 获取会员优惠券信息
     *
     * @param memberId memberId
     * @return CouponRecord
     */
    List<CouponRecord> getCouponTypeNumber(Long memberId);

    /**
     * 批量删除（物理删除）
     *
     * @param couponRecordList couponRecordList
     */
    void deleteBath(List<CouponRecord> couponRecordList);

}
